<?php

namespace app\api\model;

use think\Model;
use think\model\concern\SoftDelete;

class ArticleCategory extends Model
{
    use SoftDelete;

    protected $autoWriteTimestamp = true;

    protected $pk = 'category_id';

    public static function getList()
    {
        return self::where('category_status', '=', 1)
            ->order('category_sort desc,category_id desc')
            ->select()
            ->toArray();
    }
}